import http from "@/api";
import { ResPage } from "@/api/interface/index";
import { Applet, Forward } from "@/api/interface/iot";

export const getUserAppletList = (params: Applet.ReqUserApplet) => {
	return http.get<ResPage<Forward.ResRule[]>>(`/service/app/find`, params);
};
export const getUserAppletDetail = (params: Applet.ReqUserApplet) => {
	return http.get<ResPage<Forward.ResRule[]>>(`/service/app/get`, params);
};
export const addUserApplet = (params: Applet.ResUserApplet) => {
	return http.post(`/service/app/add`, params);
};
export const delUserApplet = (params: Applet.ResUserApplet) => {
	return http.post(`/service/app/remove`, params);
};
export const modUserApplet = (params: Applet.ResUserApplet) => {
	return http.post(`/service/app/modify`, params);
};
